<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of pagina
 *
 * @author jmp
 */
class Pagina extends CI_Controller{
    function __construct() {
        parent::__construct();
        
    }
    
    public function contatos(){
            $this->_render_page("pagina/contatos");
    }
    
    public function farmacias(){
        $this->_render_page("pagina/farmacias");
    }
    
    private function _render_page($layout_path){
        $content = $this->load->view($layout_path,'',true);
        $this->load->view('common/header');
        $this->load->view('common/sidebar');
        $this->load->view('common/content', array("html"=>$content));
        $this->load->view('common/footer');
    }
}

?>
